<extend name="Index:base" />
<block name="body">
<div class="hd-menu-list">
	<ul>
		<li>
			<a href="{:U('rule')}">节点列表</a>
		</li>
		<li class="active">
			<a href="#">修改节点</a>
		</li>
	</ul>
</div>
<form onsubmit="return hd_submit(this,'{:U('ruleEditAjax')}','{:U('rule')}')" class="hd-form">
	<table class="hd-table hd-table-form">
		<thead>
        <tr>
            <td colspan="2">修改节点</td>
        </tr>
    	</thead>
            <tr>
                <th class="hd-w120">上级节点<span class="star">*</span></th>
                <td>
                    <select name="pid" required>
                        <option lv="0">顶级节点</option>
                        <foreach name="menu" item="v">
                        <if condition="$v['level'] lt 3">
                        <option <if condition="$v['id'] eq $data['pid']">selected="selected"</if> value="{$v.id}">{$v.html}{$v.title}</option>
                        </if>
                        </foreach>
                    </select>
                </td>
            </tr>
    		<tr>
    			<th>节点名称</th>
    			<td ><input value="{$data.name}" class="hd-w300" type="text" name="name"><span class="hd-validate-notice">英文名 如: Admin/Index/index</span></td>
    		</tr>
    		<tr>
    			<th>节点中文名<span class="star">*</span></th>
    			<td>
    				<textarea class="hd-w300 hd-h40" name="title">{$data.title}</textarea>
    			</td>
    		</tr>
            <tr>
                <th>菜单栏显示<span class="star">*</span></th>
                <td>
                    <label><input <if condition="$data['ismenu'] eq 1">checked='checked'</if> type="radio" name="ismenu" value='1'>显示</label>
                    <label><input <if condition="$data['ismenu'] eq  0">checked='checked'</if> type="radio" name="ismenu" value='0'>隐藏</label>
                </td>
            </tr>
            <tr>
                <th>节点状态<span class="star">*</span></th>
                <td>
                    <label><input <if condition="$data['status'] eq 1">checked='checked'</if> type="radio" name="status" value='1'>开启</label>
                    <label><input <if condition="$data['status'] eq  0">checked='checked'</if> type="radio" name="status" value='0'>关闭</label>
                </td>
            </tr>
            <tr>
                <th>排序</th>
                <td><input type="text" value="100" value="{$v.sort}" name="sort"></td>
            </tr>
	</table>
	<input type="hidden" name="id" value="{:I('get.id')}">
	<input type="submit" value="确定" class="hd-btn">
</form>
</block>